package com.ruoyi.project.pay;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 读取项目相关配置
 * 
 * @author ruoyi
 */
@Component
@ConfigurationProperties(prefix = "pay")
public class PayConfig
{
    /** 菜鸟路径 */
    private String caiNiaoHost;
    private String qrPath;
    private String host;
    /** 菜鸟路径 */
    private String caiNiaoApiKey;

    public boolean isNeedSyncToPayCenter() {
        return needSyncToPayCenter;
    }

    public void setNeedSyncToPayCenter(boolean needSyncToPayCenter) {
        this.needSyncToPayCenter = needSyncToPayCenter;
    }

    private boolean needSyncToPayCenter = false;
    /** 支付中心host */
    private String payCenterHost;
    /** 支付中心host */
    private String alipayPrivateKey;
    /** 支付中心host */
    private String alipayPublicKey;
    private String pddHost;
    /** 菜鸟路径 */
    private String pddApiKey;
    /** 菜鸟路径 */
    private String title;
    private String whiteHost;
    private String needNotice;
    private Long dept;
    private Long role;
    private int vip;
    private String  invitationCode;
    public String getCaiNiaoHost() {
        return caiNiaoHost;
    }

    public void setCaiNiaoHost(String caiNiaoHost) {
        this.caiNiaoHost = caiNiaoHost;
    }

    public  String getCaiNiaoApiKey() {
        return caiNiaoApiKey;
    }

    public void setCaiNiaoApiKey(String caiNiaoApiKey) {
        this.caiNiaoApiKey = caiNiaoApiKey;
    }

    public String getPayCenterHost() {
        return payCenterHost;
    }

    public void setPayCenterHost(String payCenterHost) {
        this.payCenterHost = payCenterHost;
    }

    public String getAlipayPrivateKey() {
        return alipayPrivateKey;
    }

    public void setAlipayPrivateKey(String alipayPrivateKey) {
        this.alipayPrivateKey = alipayPrivateKey;
    }

    public String getAlipayPublicKey() {
        return alipayPublicKey;
    }

    public void setAlipayPublicKey(String alipayPublicKey) {
        this.alipayPublicKey = alipayPublicKey;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("caiNiaoHost", getCaiNiaoHost())
                .append("caiNiaoApiKey", getCaiNiaoApiKey())
                .append("payCenterHost", getPayCenterHost())
                .append("alipayPrivateKey", getAlipayPrivateKey())
                .append("alipayPublicKey", getAlipayPublicKey())
                .append("whiteHost", getWhiteHost())
                .toString();
    }

    public String getQrPath() {
        return qrPath;
    }

    public void setQrPath(String qrPath) {
        this.qrPath = qrPath;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getPddHost() {
        return pddHost;
    }

    public void setPddHost(String pddHost) {
        this.pddHost = pddHost;
    }

    public String getPddApiKey() {
        return pddApiKey;
    }

    public void setPddApiKey(String pddApiKey) {
        this.pddApiKey = pddApiKey;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getWhiteHost() {
        return whiteHost;
    }

    public void setWhiteHost(String whiteHost) {
        this.whiteHost = whiteHost;
    }

    public String getNeedNotice() {
        return needNotice;
    }

    public void setNeedNotice(String needNotice) {
        this.needNotice = needNotice;
    }

    public Long getDept() {
        return dept;
    }

    public void setDept(Long dept) {
        this.dept = dept;
    }

    public Long getRole() {
        return role;
    }

    public void setRole(Long role) {
        this.role = role;
    }

    public int getVip() {
        return vip;
    }

    public void setVip(int vip) {
        this.vip = vip;
    }

    public String getInvitationCode() {
        return invitationCode;
    }

    public void setInvitationCode(String invitationCode) {
        this.invitationCode = invitationCode;
    }
}
